import request from '@/utils/request'

//查询职务扫描表列表
export function selectPositionChangeScanInfo(query) {
  return request({
    url: '/personScheduled/selectPositionChangeScanInfo',
    method: 'get',
    params: query
  })
}

//查询岗位扫描表列表
export function selectPostChangeScanInfo(query) {
  return request({
    url: '/personScheduled/selectPostChangeScanInfo',
    method: 'get',
    params: query
  })
}

//查询岗位下拉列表选项
export function getPositionTypeDropDownOptions() {
  return request({
    url: '/personScheduled/getPositionTypeDropDownOptions',
    method: 'get'
  })
}

//查询职务下拉列表选项
export function getPostTypeDropDownOptions() {
  return request({
    url: '/personScheduled/getPostTypeDropDownOptions',
    method: 'get'
  })
}

//查询科室扫描表列表
export function selectDeptChangeScanInfo(query) {
  return request({
    url: '/personScheduled/selectDeptChangeScanInfo',
    method: 'get',
    params: query
  })
}

//查询薪级扫描表列表
export function selectSalaryChangeScanInfo(query) {
  return request({
    url: '/personScheduled/selectSalaryChangeScanInfo',
    method: 'get',
    params: query
  })
}

//查询员工状态扫描表列表
export function selectEmployeeStatusChangeScanInfo(query) {
  return request({
    url: '/personScheduled/selectEmployeeStatusChangeScanInfo',
    method: 'get',
    params: query
  })
}

// 新增调整职务
export function insertPositionChangeScanInfo(data) {
  return request({
    url: '/personScheduled/insertPositionChangeScanInfo',
    method: 'post',
    data: data
  })
}

// 新增调整岗位
export function insertPostChangeScanInfo(data) {
  return request({
    url: '/personScheduled/insertPostChangeScanInfo',
    method: 'post',
    data: data
  })
}

// 新增调整科室
export function insertDeptChangeScanInfo(data) {
  return request({
    url: '/personScheduled/insertDeptChangeScanInfo',
    method: 'post',
    data: data
  })
}

// 新增调整薪级
export function insertSalaryChangeScanInfo(data) {
  return request({
    url: '/personScheduled/insertSalaryChangeScanInfo',
    method: 'post',
    data: data
  })
}

// 新增调整员工状态
export function insertEmployeeStatusChangeScanInfo(data) {
  return request({
    url: '/personScheduled/insertEmployeeStatusChangeScanInfo',
    method: 'post',
    data: data
  })
}

//输入用户id查岗位信息
export function obtainUserPositionInformation(userId) {
  return request({
    url: '/personScheduled/getPositionByUserId/' + userId,
    method: 'get'
  })
}

//输入用户id查职务信息
export function obtainUserPostInformation(userId) {
  return request({
    url: '/personScheduled/getPostByUserId/' + userId,
    method: 'get'
  })
}

//输入用户id查科室信息
export function obtainUserDepartmentInformation(userId) {
  return request({
    url: '/personScheduled/getDeptInfoByUserId/' + userId,
    method: 'get'
  })
}

//输入id查员工状态信息
export function obtainEmployeeStatusInformation(userId) {
  return request({
    url: '/personScheduled/obtainEmployeeStatusInformation/' + userId,
    method: 'get'
  })
}

//输入id查员工薪级信息
export function obtainSalaryInformation(userId) {
  return request({
    url: '/personScheduled/obtainSalaryInformation/' + userId,
    method: 'get'
  })
}


export function getSalarySelectList() {
  return request({
    url: '/personScheduled/getSalarySelectList/',
    method: 'get'
  })
}
